﻿using SqlSugar;
using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace O.M.Production.Domain.Entity
{

    /// <summary>
    /// 生产产品关系表
    /// </summary>
    [SugarTable("produce_product")]
    public class produce_product 
    {
        /// <summary>
        /// 产品id
        /// </summary>
        [SugarColumn(IsPrimaryKey = true, ColumnDescription = "产品id",IsIdentity =true)]
        public int produce_id {  get; set; }

        /// <summary>
        /// 生产编号
        /// </summary>
        public string? internal_product_id { get; set; }
        /// <summary>
        /// 产品编号
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "产品编号")]
        public string? produce_code { get; set; }
        /// <summary>
        /// 产品名称
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "产品名称")]
        public string? product_name { get; set; }
        /// <summary>
        /// 规格型号
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "规格型号")]
        public string? specifications_model { get; set; }
        /// <summary>
        /// 单位
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "单位")]
        public string? unit { get; set; }
        /// <summary>
        /// 销售数量
        /// </summary>
        [SugarColumn(ColumnDescription = "销售数量")]
        public int sell_quantity { get; set; }
        /// <summary>
        /// 交付日期
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "交付日期")]
        public string? pay_date { get; set; }
        /// <summary>
        /// BOM
        /// </summary>
        [SugarColumn(Length = 100, ColumnDescription = "BOM", IsNullable = true)]
        public string? bom { get; set; }
        /// <summary>
        /// 计划生产数量
        /// </summary>
        [SugarColumn(ColumnDescription = "计划生产数量")]
        public int plan_produce_quantity { get; set; }
        /// <summary>
        /// 备注
        /// </summary>
        [SugarColumn(Length = 200, ColumnDescription = "备注")]
        public string? remarks { get; set; }
    }
}
